$pointer: url('@/assets/images/Pointing.svg'), pointer;

.mainEdit{
  width: 500px;
  height: 100%;
  border-right: 1px solid rgba(172, 172, 172, 0.29);
  background: rgba(207, 207, 207, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .top{
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    .header{
      display: flex;
      align-items: center;
      justify-content: space-between;
      line-height: 36px;
      .title{
        font-size: 20px;
        font-weight: 600;
      }
      .typeGroup{
        border-radius: 6px;
        padding: 2px;
        display: flex;
        gap: 10px;
        .typeItem{
          color: #fff;
          font-size:14px;
          font-weight: 400;
          padding: 6px 9px;
        }
        :global(.semi-radio-addon-buttonRadio-checked){
          background-color: rgba(49, 107, 255, 1);
        }
        :global(.semi-radio-buttonRadioGroup-small){
          padding: 0;
        }
      }
    }
    .titleSection{ 
      margin: 8px 0 4px;
      line-height: 20px;
    }
    .area{
      border: 1px solid rgba(255, 255, 255, 0.2);
      background-color: rgba(23, 22, 26, 1);
      padding: 16px;
      border-radius: 4px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 240px;
      flex: 1;
      .tabs{
        display: flex;
        gap: 23px;
        color: rgba(255, 255, 255, 0.5);
        .noActive{
          line-height: 20px;
          padding-bottom: 10px;
          cursor: $pointer;
        }
        .isActive{
          line-height: 20px;
          padding-bottom: 10px;
          cursor: $pointer;
          border-bottom: 2px #fff solid;
        }
      }
      .uploadSection{
        flex: 1;
        background: rgba(100, 100, 100, 0.1);
        background-image: 
        /* 顶部 */
        linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        /* 右侧 */
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        /* 底部 */
        linear-gradient(to left, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        /* 左侧 */
        linear-gradient(to top, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 50%);
        background-size: 
          10px 1px,   /* 顶部虚线 */
          1px 10px,   /* 右侧虚线 */
          10px 1px,   /* 底部虚线 */
          1px 10px;   /* 左侧虚线 */
            
        background-position: 
          top left,    /* 顶部位置 */
          top right,   /* 右侧位置 */
          bottom left, /* 底部位置 */
          top left;    /* 左侧位置 */
            
        background-repeat: 
          repeat-x, /* 顶部重复 */
          repeat-y, /* 右侧重复 */
          repeat-x, /* 底部重复 */
          repeat-y; /* 左侧重复 */
          
        border-radius: 4px;
        .uploadPlaceholder{
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 12px;
          .uploadIcon{
            width: 18px;
            height: 18px;
            margin-bottom: 3px;
          }
          .uploadText{
            color: rgba(255, 255, 255, 0.5);
            font-size: 12px;
            line-height: 17px;
            cursor: default;
            span{
              color: rgba(249, 251, 252, 1);
              cursor: $pointer;
            }
          }
        }
      }
      // Upload组件样式优化
      .uploadMultiSize {
        width: 100%;
        height: 100%;
        max-width: 145px;
        max-height: 118px;
      }
      .uploadLayerSize {
        min-width: 145px;
        min-height: 80px;
        max-width: 145px;
        max-height: 80px;

      }
      .uploadFullSize {
        max-width: 100%;
        max-height: 100%;
      }
      .opts{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        .opt{
          display: flex;
          align-items: center;
          gap: 4px;
          cursor: $pointer;

          .text{
            font-size: 14px;
            font-weight: 400;
          }
        }
      }
      .img{
        cursor: $pointer;
        width: 20px;
        height: 20px;
      }
      :global(.semi-input-textarea-wrapper){
        flex: 1;
        background-color: unset;
        border: none;
      }
      :global(.semi-input-textarea-wrapper-focus){
        border: none;
      }
      :global(.semi-input-textarea){
        height: 100%;
        padding: 0;
      }
    }
    .saveBtn {
      // width: 180px;
      margin-left: 360px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 4px;
    }
  }
  .bottom{
    height: 96px;
    --semi-border-radius-small:4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    .selectSection{
      height:32px;
      display:flex;
      gap:12px;
      :global(.arco-select){
        flex: 1;
        border: 1px solid rgba(255, 255, 255, 0.2);
      }
    }
  }
}
.historyModal{
  :global(.semi-modal-header),
  :global(.semi-modal-footer){
    padding: 0 24px;
  }
  :global(.semi-modal-content){
    padding: 0;
    :global(.semi-modal-body){
      overflow: auto;
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }
  }
  .historyModalList{
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    width: 1168px;
    max-height: 628px;
    .historyModalItem{
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      width: 200px;
      height: 200px;
      overflow: hidden;
    }
    .img{
      width: 100%;
      height: 100%;
    }
  }
  .historyModalButton{
    display: flex;
    gap: 10PX;
    justify-content: flex-end;
    .button{
      width: 100%;
    }
  }
}

// 新增的样式类，用于替换内联样式
.imageContainer {
  max-height: 140px;
  flex: 1;
  border: 1px solid rgba(68, 68, 72, 1);
  border-radius: 4px;
}

.submitButtonContainer {
  display: flex;
  justify-content: flex-end;
}

.submitButton {
  width: 170px;
  height: 40px;
}

.titleSectionMargin {
  margin: 0 0 -4px;
}

.referenceImageArea {
  max-height: 173px;
}

.referenceTextArea {
  max-height: 218px;
}

.toolbarContainer {
  height: 40px;
  border: 1px solid rgba(68, 68, 72, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.toolButton {
  width: 75px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  gap: 4px;
  cursor: $pointer;
  &:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

.toolButtonActive {
  width: 75px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  gap: 4px;
  cursor: $pointer;
}

/* Arco表单样式优化 */
.storyboardModalContent {
  padding: 10px 0;
}

.formLayout {
  .arco-form-item {
    margin-bottom: 0;
  }
  
  .arco-form-item-label {
    min-width: 100px;
  }

  .textArea{
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgb(23, 22, 26);
  }

}

/* 调整Arco组件样式 */
:global(.arco-form-item) {
  margin-bottom: 0;
}

:global(.arco-select) {
  width: 100%;
}

:global(.arco-input-textarea) {
  width: 100%;
}